package com.example.neo4j.service.impl;

import com.example.neo4j.bean.Person;
import com.example.neo4j.dao.Neo4jPersonRepository;
import com.example.neo4j.service.Neo4jPersonService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.*;

@Service
public class Neo4jPersonServiceImpl implements Neo4jPersonService {

    @Resource
    private Neo4jPersonRepository personRepository;

    @Override
    public List<Person> findPersonAll() {
        return personRepository.findAll();
    }
}
